﻿@using CodeCamp.Models.Shared
@model CodeCamp.Models.Presenters.PresentersDetailsViewModelAdvanced

<div><hr /></div>
<h3>Advanced Presenter Details</h3>
<style>
    .fieldset
    {
        width: 40em;
    }
    .display-label 
    {
        margin: 1em 0 0 0;
        /* display:inline; */
        width: 15em;
        float: left;
        clear: left;
    }
    .display-field
    {
        margin: 0.5em 0 0 0;
        /* display:inline; */
        width: 20em;
        float: left;
        clear: right;
    }
</style>

<fieldset>
    <legend></legend>

    <div>
    <div class="display-label">PresenterId</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.PresenterId)
    </div>
    </div>

    <div>
    <div class="display-label">Presenter Can Edit</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.PresenterIsAuthorizedToEdit)
    </div>
    </div>

    <div><hr /></div>

    @if (Model.PresenterSiteUserId.HasValue)
    {
    <div>
    <div class="display-label">Site User Id</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.PresenterSiteUserId)
    </div>
    </div>

    <div>
    <div class="display-label">UserIdentityProvider</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.UserIdentityProvider)
    </div>
    </div>

    <div>
    <div class="display-label">UserIdentityIssuer</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.UserIdentityIssuer)
    </div>
    </div>

    <div>
    <div class="display-label">UserIdentityClaimType</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.UserIdentityClaimType)
    </div>
    </div>

    <div>
    <div class="display-label">UserIdentityClaim</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.UserIdentityClaim)
    </div>
    </div>

    <div>
    <div class="display-label">UserClaimEmailAddress</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.UserClaimEmailAddress)
    </div>
    </div>
    }

    <div><hr /></div>

    <div>
    <div class="display-label">EventId</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.EventId)
    </div>
    </div>

    <div>
    <div class="display-label">DefaultEventShortName</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.DefaultEventShortName)
    </div>
    </div>

    <div>
    <div class="display-label">EventShortName</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.EventShortName)
    </div>
    </div>

    <div>
    <div class="display-label">EventDisplayName</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.EventDisplayName)
    </div>
    </div>

    <div>
    <div class="display-label">RegistrationUrl</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.RegistrationUrl)
    </div>
    </div>

    <div>
    <div class="display-label">EventIsPublic</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.EventIsPublic)
    </div>
    </div>

    <div>
    <div class="display-label">SubmissionsOpen</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.SubmissionsOpen)
    </div>
    </div>

    <div>
    <div class="display-label">PresenterLoginCreationAllowed</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.PresenterLoginCreationAllowed)
    </div>
    </div>

    <div>
    <div class="display-label">PresenterProfileCreationAllowed</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.PresenterProfileCreationAllowed)
    </div>
    </div>

    <div>
    <div class="display-label">User Is Presenter</div>
    <div class="display-field">
        @if (User.IsInRole(CCRoles.RoleNames.Presenter))
        {
            <text>Yes</text>
        }
        else
        {
            <text>&nbsp;</text>
        }
    </div>
    </div>

    <div>
    <div class="display-label">Use Is BigCheeze</div>
    <div class="display-field">
        @if (User.IsInRole(CCRoles.RoleNames.BigCheeze))
        {
            <text>Yes</text>
        }
        else
        {
            <text>&nbsp;</text>
        }
    </div>
    </div>
</fieldset>
